package com.nantian.ecm.docmatcher;

import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import com.nantian.ecm.docmatcher.doc.IDocReader;
import com.nantian.ecm.docmatcher.doc.POIDocReader;

@Component
public class DocMatcherRunner implements ApplicationRunner {

	@Override
	public void run(ApplicationArguments arg0) throws Exception {
		final String docFile="test/业务需求申请单模板.doc";
		final String docFile2="test/业务需求说明书模板.doc";
		IDocReader reader=POIDocReader.getInstance(docFile);
		//reader.getOutlines();
		
		System.out.println(reader.matchRegx(".*业务规则.*"));
	}

}
